package com.community.process._1010.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.community.process._1010.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * 退款记录
 *
 * @author Zbs
 * @since 2024-09-13
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@TableName("yg_process_refund_order")
@Schema(description = "退款记录")
public class ProcessRefundOrder extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "订单ID")
    private Long orderId;

    @Schema(description = "订单ID")
    private String outTradeNo;

    @Schema(description = "http退款备注")
    private String refundRemarks;

    @Schema(description = "是否成功 1 成功 0 失败")
    private Integer isSuccess;

    public ProcessRefundOrder(ProcessTOrder order) {
        this.orderId = order.getId();
        this.outTradeNo = order.getTradeNo();
    }

}
